declare variable $name external;

for $filtre in //filtre

where $filtre/@name = $name

return $filtre/*